package com.kang.bean.bot;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.kang.bean.enums.bot.PlayEnum;
import lombok.Data;

/**
 * @program: service
 * @description: 仓库
 * @author: K.faWu
 * @create: 2022-06-10 13:45
 **/
@Data
public class Store {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String accountCode; //账号
    private String groupCode; //群聊账号，服务器
    private Long max; //上限；
    private Long num; //当前数量

    public Store(){}
    public Store(String accountCode, String groupCode){
        this.accountCode = accountCode;
        this.groupCode = groupCode;
        this.max = PlayEnum.INIT_STORE.getMax();
        this.num = PlayEnum.INIT_STORE.getNum();
    }
}
